groupDao = require("../dao/group")

exports.handleGroupsInfo = function (req, res) {
    userId = req.body.userId
    // { success: true, GroupsList: rows }
    groupDao.getGroupsInfo(userId, res)
        .then(function (data) {
            res.json({ success: true, groupsList: data })
        })
}
